package org.jeecg.modules.gongqiang.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 订单
 * @Author: jeecg-boot
 * @Date:   2024-06-12
 * @Version: V1.0
 */
@Data
@TableName("userhome_order")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="userhome_order对象", description="订单")
public class UserhomeOrder implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private java.lang.String id;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private java.lang.String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private java.util.Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private java.lang.String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private java.util.Date updateTime;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private java.lang.String sysOrgCode;
	/**订单号*/
	@Excel(name = "订单号", width = 15)
    @ApiModelProperty(value = "订单号")
    private java.lang.String orderNum;
	/**商品id*/
	@Excel(name = "商品id", width = 15)
    @ApiModelProperty(value = "商品id")
    private java.lang.String goodId;
	/**商品详情id*/
	@Excel(name = "商品详情id", width = 15)
    @ApiModelProperty(value = "商品详情id")
    private java.lang.String goodDetailId;
	/**总数量*/
	@Excel(name = "总数量", width = 15)
    @ApiModelProperty(value = "总数量")
    private java.lang.Integer num;
	/**总价*/
	@Excel(name = "总价", width = 15)
    @ApiModelProperty(value = "总价")
    private java.lang.Double tprice;
    /**用户id*/
    @Excel(name = "用户id", width = 15)
    @ApiModelProperty(value = "用户id")
    private java.lang.Integer userId;
    /**支付方式 0未支付 1微信 2支付宝 3银行卡 4盈盛*/
    @Excel(name = "支付方式 0未支付 1微信 2支付宝 3银行卡 4盈盛", width = 15)
    @ApiModelProperty(value = "支付方式 0未支付 1微信 2支付宝 3银行卡 4盈盛微信 5盈盛支付宝 6盈盛网银")
    private java.lang.Integer payType;
	/**订单创建时间*/
	@Excel(name = "订单支付时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "订单支付时间")
    private java.util.Date payTime;
	/**订单状态（0未支付 1已支付 2已放弃）*/
	@Excel(name = "订单状态", width = 15,replace = { "未支付_0","已支付_1","已放弃_2"})
    @ApiModelProperty(value = "订单状态（0未支付 1已支付 2已放弃）")
    private java.lang.Integer status;
	/**备注*/
	@Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private java.lang.String remark;

    @TableField(exist = false)
    private String goodname;

    @TableField(exist = false)
    private String termId;

    @TableField(exist = false)
    private String uniPrice;

    @TableField(exist = false)
    private String username;

    @TableField(exist = false)
    private String phone;

    @Excel(name = "商品编码", width = 15)
    @ApiModelProperty(value = "商品编码")
    private java.lang.String goodCode;


    @Excel(name = "商品单价", width = 15)
    @ApiModelProperty(value = "商品单价")
    private java.lang.Double goodDetailPrice;
    @Excel(name = "商品市场单价", width = 15)
    @ApiModelProperty(value = "商品市场单价")
    private java.lang.Double goodDetailMarketPrice;
    @Excel(name = "期限 单位天", width = 15)
    @ApiModelProperty(value = "期限 单位天")
    private java.lang.Integer goodDetailTermId;
    @Excel(name = "软件下载链接", width = 15)
    @ApiModelProperty(value = "软件下载链接")
    private java.lang.String goodPcUrl;

    @ApiModelProperty(value = "微信公众号id")
    private java.lang.String woaopenid;



}
